package com.sky.mapper;

import com.sky.entity.VoucherOrder;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: invictusQAQ
 * @Date: 2023-09-06-17:17
 * @Description:
 */
@Mapper
public interface VoucherOrderMapper {

    /**
     * 根据条件查询VoucherOrder,不包括时间
     * @param voucherOrder
     * @return Integer
     **/
    List<VoucherOrder> getVoucherOrder(VoucherOrder voucherOrder);

    /**
     * 添加VoucherOrder
     * @param voucherOrder
     * @return Integer
     **/
    @Insert("insert into voucher_order(id,user_id,voucher_id) values (#{id},#{userId},#{voucherId})")
    Integer addVoucherOrder(VoucherOrder voucherOrder);
}
